<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title></title>
    <script src="./js/vue.js"></script>
</head>

<body>
    <div id="app">
        <!-- 
            v-show:
                隐藏：display:none 显示：移出display:none

            v-if:
                隐藏：删除元素  显示:添加元素
         -->

        <p v-show="show">show</p>
        <p v-if="show">if</p>
    </div>
    <script>
        let vm = new Vue({
            el: "#app",
            data: {
               shpw:"true"
            }
        })
    </script>
</body>

<html>